package com.itheima.service;


import com.github.pagehelper.Page;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.Setmeal;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

@Transactional
public interface SetmealService {

    @Transactional(readOnly = true)
    PageResult pageQuery(QueryPageBean queryPageBean);

    void add(Setmeal setmeal, Integer[] ids);

    void setSetmealAndCheckgroup(Integer sid, Integer[] ids);

    void deleteCheckGroupAndCheckItem(Integer gid);


    Result findSetMealCount();

    @Transactional(readOnly = true)
    Setmeal findById(Integer id);

    @Transactional(readOnly = true)
    Page<Setmeal> findAll(String queryString);

    void edit(CheckGroup checkGroup, Integer[] checkitemIds);

    void delete(Integer id);

}
